#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int massa=0;
    int ed;
    cout<<"Vvedite massu: ";
    cin>>massa;
    cout<<"Viberite edinici: 1-KGr, 2-mGr, 3-Gr, 4-Tonna, 5-Centner";
    cin>>ed;
    switch(ed)
    {
    case 1: break;
    case 2: massa=massa*0.000001;break;
    case 3: massa=massa*0.001;break;
    case 4: massa=massa*1000;break;
    case 5: massa=massa*100;break;
    }
    cout<<"massa v kG= "<<massa;
    return a.exec();
}
